Skip to content

API

POST

  1. /api/auth/login - Accepts userName and password, returns userName if the login is in the database and the password matches it

  2. /api/auth/reg - Accepts userName and password. After this, it creates a user and returns the status 200.

  3. /api/ai - accepts an array of objects with type messagesToAI after this call to AI and returns string